package com.iss.service;

import com.iss.dao.RoomDAO;
import com.iss.model.Room;

import java.util.List;

public class RoomService {
    private RoomDAO roomDAO = new RoomDAO();


    public boolean add(Room room){
       return roomDAO.insert(room);
    }

    public List<Room>  getList(){
        return  roomDAO.select();
    }
}
